package com.work.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 账户
 * @Date 2024-05-15 21:09:05
 * @author hjj
 */
@Data
@TableName("account")
@ApiModel(value="Account对象", description="账户")
public class Account implements Serializable {

    @NotBlank(message="[]不能为空")
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("")
    private String address;

    @NotBlank(message="[私钥路径]不能为空")
    @Size(max= 128,message="编码长度不能超过128")
    @ApiModelProperty("私钥路径")
    private String privateKeyPath;

    @NotBlank(message="[安全码]不能为空")
    @Size(max= 6,message="编码长度不能超过6")
    @ApiModelProperty("安全码")
    private String code;

    @NotNull(message="[用户id]不能为空")
    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
